package com.ctgu.tengyun.bean.errorcode;

public class ResultConstant {

    public static final String PROTO_RESP_FIELD = "response";

    public static final Integer SUCC = 0;
    public static final String SUCC_DATA = "OK";

    public static final Integer SC_UNAUTHORIZED_ERR_CODE = 401; // token
    public static final String SC_UNAUTHORIZED_ERR_DATA = "unauthorized";

    public static final Integer FORBIDDEN_ERR_CODE = 403;
    public static final String FORBIDDEN_ERR_DATA = "forbidden access";

    public static final Integer NOT_FOUND_ERR_CODE = 404;
    public static final String NOT_FOUND_ERR_DATA = "not found";

    public static final Integer PRECONDITION_FAILED_ERROR_CODE = 412; // session
    public static final String PRECONDITION_FAILED_ERROR_MSG = "precondition failed";

    public static final Integer UNPROCESSABLE_ENTITY_ERR_CODE = 422;
    public static final String UNPROCESSABLE_ENTITY_ERR_DATA = "unprocessable entity";

    public static final Integer SC_INTERNAL_SERVER_ERR_CODE = 500;
    public static final String SC_INTERNAL_SERVER_ERR_DATA = "server internal error";

    public static final Integer EXTERNAL_SYSTEM_ERR_CODE = 600;
    public static final String EXTERNAL_SYSTEM_ERR_DATA = "external system error";

    public static final Integer OVER_THREASHOLD_ERR_CODE = 601;
    public static final String OVER_THREASHOLD_ERR_DATA = "over threashold error";

    public static final Integer LOGOUT_ERR_CODE = 602;
    public static final String LOGOUT_ERR_DATA = "already logged out";

    public static final Integer DUPLICATE_REQUEST_ERR_CODE = 603;
    public static final String DUPLICATE_REQUEST_ERR_DATA = "duplicate request";

    public static final Integer VIA_OLD_INTERFACE_ERR_CODE = 604;
    public static final String VIA_OLD_INTERFACE_ERR_DATA = "not allow via old interface";

    public static final Integer CONCURRENT_UPDATE_ERR_CODE = 605;
    public static final String CONCURRENT_UPDATE_ERR_DATA = "请重试一次";

    public static final Integer SYSTEM_BUSY_ERR_CODE = 700;
    public static final String SYSTEM_BUSY_ERR_DATA = "system busy, try again later";

}
